StoreEngine\Addons\Stripe\StripeService C

Total Complexity 122
Dependencies 16
Dependents 10
Total lines 891
Lines of code 557
Logical lines of code 239
Comment lines 199
Methods 46
Properties 11

Methods 46

Method Rating Maintainability Complexity Lines of code
create_payment_intent()
A
43 7 45
init_settings()
S
54 6 20
detach_payment_method_from_customer()
S
53 5 22
get_customer()
S
53 5 21
get_payment_method()
S
53 5 21
format_balance_fee()
S
58 5 15
update_payment_method()
S
55 4 18
attach_payment_method_to_customer()
S
55 4 18
is_card_payment_method()
S
65 5 9
get_stripe_amount()
S
58 4 14
should_detach_payment_method_from_customer()
S
62 4 13
validate_publishable_key()
S
61 3 12
create_payment_intent_and_charge_for_subscription()
S
52 2 24
create_and_confirm_setup_intent()
S
53 2 22
create_subscription()
S
58 2 18
create_setup_intent()
S
58 2 15
get_setup_intents()
S
58 2 15
create_price()
S
59 2 15
search_subscription()
S
65 3 9
is_reusable_payment_method()
S
77 3 3
get_payment_intent()
S
58 2 15
is_stripe_configured()
S
64 3 10
create_charge()
S
62 2 12
get_minimum_amount()
S
70 2 6
is_payment_method_object()
S
78 2 3
get_balance_history()
S
69 2 7
init()
S
71 2 6
refund()
S
64 2 10
resume_subscription()
S
66 2 9
create_product()
S
64 2 10
create_customer()
S
64 2 10
cancel_subscription()
S
69 2 7
list_subscriptions()
S
69 2 7
update_payment_intent()
S
63 2 10
retrieve_subscription()
S
69 2 7
create_webhook()
S
64 2 10
get_webhook()
S
69 2 7
validate_keys()
S
63 2 10
__construct()
S
67 2 8
capture_payment()
S
63 2 10
create_product_and_subscription()
S
60 1 13
getClient()
S
82 1 3
get_subscription_current_period_info()
S
66 1 9
no_decimal_currencies()
S
80 1 3
three_decimal_currencies()
S
80 1 3
get_currency_minimum_charges()
S
80 1 3